package com.lvmou.index12306.frameworks.starter.common.enums;

/**
 * 标识枚举
 */
public enum FlagEnum {
    FALSE(0),

    TRUE(1);

    private final Integer flag;

    FlagEnum(Integer flag){
        this.flag = flag;
    }

    public Integer code(){
        return this.flag;
    }

    public String strCode(){
        return String.valueOf(this.flag);
    }

    @Override
    public String toString(){
        return  this.strCode();
    }
}
